public class hk4Q2T2
{
    public static void main(String[] arg)
    {
        double a = 1;
        double b = 0;
        double i = 1;
        while (a <= 10)
        {
            i = a * i;
            b += i;
            a++;
        }
        System.out.println("b =" + b);
    }
}
class TEST
{
}